import { createRouter, createWebHistory } from 'vue-router'
import registerView from '@/views/register/index.vue'
import loginView from '@/views/login/index.vue'
import homeView from '@/views/home/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/register' },
    { path: '/register', name: 'register', component: registerView, },
    { path: '/login', name: 'login', component: loginView, },
    { path: '/home', name: 'home', component: homeView, },
  ],
})

export default router
